package com.ruoyi.web.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.GuMrDtgcMapper;
import com.ruoyi.web.domain.GuMrDtgc;
import com.ruoyi.web.service.IGuMrDtgcService;

/**
 * 跌停股池Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-17
 */
@Service
public class GuMrDtgcServiceImpl implements IGuMrDtgcService 
{
    @Autowired
    private GuMrDtgcMapper guMrDtgcMapper;

    /**
     * 查询跌停股池
     * 
     * @param id 跌停股池主键
     * @return 跌停股池
     */
    @Override
    public GuMrDtgc selectGuMrDtgcById(String id)
    {
        return guMrDtgcMapper.selectGuMrDtgcById(id);
    }

    /**
     * 查询跌停股池列表
     * 
     * @param guMrDtgc 跌停股池
     * @return 跌停股池
     */
    @Override
    public List<GuMrDtgc> selectGuMrDtgcList(GuMrDtgc guMrDtgc)
    {
        return guMrDtgcMapper.selectGuMrDtgcList(guMrDtgc);
    }

    /**
     * 新增跌停股池
     * 
     * @param guMrDtgc 跌停股池
     * @return 结果
     */
    @Override
    public int insertGuMrDtgc(GuMrDtgc guMrDtgc)
    {
        guMrDtgc.setCreateTime(DateUtils.getNowDate());
        return guMrDtgcMapper.insertGuMrDtgc(guMrDtgc);
    }

    /**
     * 修改跌停股池
     * 
     * @param guMrDtgc 跌停股池
     * @return 结果
     */
    @Override
    public int updateGuMrDtgc(GuMrDtgc guMrDtgc)
    {
        guMrDtgc.setUpdateTime(DateUtils.getNowDate());
        return guMrDtgcMapper.updateGuMrDtgc(guMrDtgc);
    }

    /**
     * 批量删除跌停股池
     * 
     * @param ids 需要删除的跌停股池主键
     * @return 结果
     */
    @Override
    public int deleteGuMrDtgcByIds(String[] ids)
    {
        return guMrDtgcMapper.deleteGuMrDtgcByIds(ids);
    }

    /**
     * 删除跌停股池信息
     * 
     * @param id 跌停股池主键
     * @return 结果
     */
    @Override
    public int deleteGuMrDtgcById(String id)
    {
        return guMrDtgcMapper.deleteGuMrDtgcById(id);
    }
}
